import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue'),
    children: [
      {
        path: 'culture',
        name: 'Culture',
        component: () => import('../views/about/Culture.vue')
      },
      {
        path: 'qualification',
        name: 'Qualification',
        component: () => import('../views/about/Qualification.vue')
      },
      {
        path: 'history',
        name: 'History',
        component: () => import('../views/about/History.vue')
      }
    ]
  },
  {
    path: '/news',
    name: 'News',
    component: () => import('../views/News.vue'),
    children: [
      {
        path: 'company',
        name: 'CompanyNews',
        component: () => import('../views/news/CompanyNews.vue')
      },
      {
        path: 'media',
        name: 'MediaReport',
        component: () => import('../views/news/MediaReport.vue')
      },
      {
        path: 'cooperation',
        name: 'NewsCooperation',
        component: () => import('../views/news/Cooperation.vue')
      },
      {
        path: 'project',
        name: 'ProjectDynamics',
        component: () => import('../views/news/ProjectDynamics.vue')
      },
      {
        path: 'industry',
        name: 'IndustryDynamics',
        component: () => import('../views/news/IndustryDynamics.vue')
      },
      {
        path: 'technology',
        name: 'TechnologySharing',
        component: () => import('../views/news/TechnologySharing.vue')
      },
      {
        path: 'notice',
        name: 'Notice',
        component: () => import('../views/news/Notice.vue')
      }
    ]
  },
  {
    path: '/solutions',
    name: 'Solutions',
    component: () => import('../views/Solutions.vue'),
    children: [
      {
        path: 'digital-twin',
        name: 'DigitalTwin',
        component: () => import('../views/solutions/DigitalTwin.vue')
      },
      {
        path: 'urban-transport',
        name: 'UrbanTransport',
        component: () => import('../views/solutions/UrbanTransport.vue')
      },
      {
        path: 'major-project',
        name: 'MajorProject',
        component: () => import('../views/solutions/MajorProject.vue')
      },
      {
        path: 'infrastructure',
        name: 'Infrastructure',
        component: () => import('../views/solutions/Infrastructure.vue')
      },
      {
        path: 'digital-city',
        name: 'DigitalCity',
        component: () => import('../views/solutions/DigitalCity.vue')
      }
    ]
  },
  {
    path: '/research',
    name: 'Research',
    component: () => import('../views/Research.vue'),
    children: [
      {
        path: 'intellectual-property',
        name: 'IntellectualProperty',
        component: () => import('../views/research/IntellectualProperty.vue')
      },
      {
        path: 'research-carrier',
        name: 'ResearchCarrier',
        component: () => import('../views/research/ResearchCarrier.vue')
      },
      {
        path: 'awards',
        name: 'Awards',
        component: () => import('../views/research/Awards.vue')
      }
    ]
  },
  {
    path: '/cooperation',
    name: 'Cooperation',
    component: () => import('../views/Cooperation.vue'),
    children: [
      {
        path: 'industry-exchange',
        name: 'IndustryExchange',
        component: () => import('../views/cooperation/IndustryExchange.vue')
      },
      {
        path: 'association',
        name: 'Association',
        component: () => import('../views/cooperation/Association.vue')
      },
      {
        path: 'business',
        name: 'Business',
        component: () => import('../views/cooperation/Business.vue')
      },
      {
        path: 'industry-university',
        name: 'IndustryUniversity',
        component: () => import('../views/cooperation/IndustryUniversity.vue')
      }
    ]
  },
  {
    path: '/party',
    name: 'Party',
    component: () => import('../views/Party.vue')
  },
  {
    path: '/investor',
    name: 'Investor',
    component: () => import('../views/Investor.vue')
  },
  {
    path: '/hr',
    name: 'HR',
    component: () => import('../views/HR.vue'),
    children: [
      {
        path: 'training',
        name: 'Training',
        component: () => import('../views/hr/Training.vue')
      },
      {
        path: 'culture',
        name: 'HRCulture',
        component: () => import('../views/hr/Culture.vue')
      },
      {
        path: 'recruitment',
        name: 'Recruitment',
        component: () => import('../views/hr/Recruitment.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 